package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 第三方报警设备表 实体类
 * 表名：ra_third_device
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "ra_third_device")
public class RaThirdDevice implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 主键
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 设备名称
     */
    @Column(name = "name", nullable = false, length = 256)
    private String name;
    
    /**
     * 第三方设备ID
     */
    @Column(name = "third_node_id", length = 64)
    private String thirdNodeId;
    
    /**
     * 第三方父类设备ID
     */
    @Column(name = "parent_node_id", length = 64)
    private String parentNodeId;
    
    /**
     * 层级等级
     */
    @Column(name = "level_grade")
    private Byte levelGrade;
    
    /**
     * 反订阅唯一标识
     */
    @Column(name = "aas_key", length = 128)
    private String aasKey;
    
    /**
     * 描述
     */
    @Column(name = "alarm_desc", length = 65535)
    private String alarmDesc;
    
    /**
     * 租户主键
     */
    @Column(name = "tenant_id")
    private Integer tenantId;
    
    /**
     * 状态（0、未订阅 1、订阅）
     * 默认值: 0
     */
    @Column(name = "status")
    private Byte status;
    
    /**
     * 是否删除（0、否1、是）
     * 默认值: 0
     */
    @Column(name = "is_del", nullable = false)
    private Byte isDel;
    
    /**
     * 创建时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "create_time", nullable = false)
    private java.time.LocalDateTime createTime;
    
    /**
     * 创建者
     */
    @Column(name = "create_by", length = 64)
    private String createBy;
    
    /**
     * 更新时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "update_time", nullable = false)
    private java.time.LocalDateTime updateTime;
    
    /**
     * 更新者
     */
    @Column(name = "update_by", length = 64)
    private String updateBy;
    
    @Override
    public String toString() {
        return "RaThirdDevice{" +
            "id=" + id +
            ", name=" + name +
            ", thirdNodeId=" + thirdNodeId +
            ", parentNodeId=" + parentNodeId +
            ", levelGrade=" + levelGrade +
            ", aasKey=" + aasKey +
            ", alarmDesc=" + alarmDesc +
            ", tenantId=" + tenantId +
            ", status=" + status +
            ", isDel=" + isDel +
            ", createTime=" + createTime +
            ", createBy=" + createBy +
            ", updateTime=" + updateTime +
            ", updateBy=" + updateBy +
        '}';
    }
} 